package me.feng.domain

import java.util.Date
import javax.persistence._
import scala.beans.BeanProperty

@serializable
@Table(name = "MEMBER")
@Entity
class Member {

  def this(id: String, nickname: String, username: String, password: String, createTime: Date, portrait: String, resume: String) = {
    this()
    this.id = id
    this.nickname = nickname
    this.username = username
    this.password = password
    this.createTime = createTime
    this.portrait = portrait
    this.resume = resume
  }

  @Id
  @BeanProperty
  var id: String = _

  @BeanProperty
  var username: String = _

  @BeanProperty
  var password: String = _

  @BeanProperty
  @Temporal(TemporalType.TIMESTAMP)
  var createTime: Date = _

  @BeanProperty
  var nickname: String = _

  @BeanProperty
  var portrait: String = _

  @BeanProperty
  var resume: String = _

}